package model.agent.service.Impl;


import model.agent.entity.Agent;
import model.agent.entity.Newhouse;
import model.agent.mapper.CollectMapper;
import model.agent.service.ICollectservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2019/6/30.
 */
@Service
@Transactional
public class CollectServiceImpl implements ICollectservice {
    @Autowired
    private CollectMapper mapper;
    @Override
    public List<Agent> getById(String id) {
        return mapper.getById(id);
    }

    @Override
    public List<Newhouse> getId(String id) {
        return mapper.getId(id);
    }
}
